package top.timous.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.timous.mapper.UserMapper;
import top.timous.pojo.UserInfo;
import top.timous.service.UserService;
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public UserInfo queryUserById(UserInfo userInfo) {
        return userMapper.queryUserById(userInfo);
    }

    @Override
    public void saveUser(UserInfo userInfo) {
        userMapper.saveUser(userInfo);
    }

    @Override
    public UserInfo queryUserByAccount(UserInfo userInfo) {
        return userMapper.queryUserByAccount(userInfo);
    }

    @Override
    public void updateUser(UserInfo userInfo) {
        userMapper.updateUser(userInfo);
    }

    @Override
    public void deleteUserByAccount(String account) {
        userMapper.deleteUserByAccount(account);
    }


}
